#Copyright (c) Wansheng Intelligent Corp. All rights reserved.
#Licensed under the MIT license. See LICENSE file in the project root for full license information.

cmake_minimum_required (VERSION 2.8.3)
message ("ep reporter..." ${PROJECT_SOURCE_DIR})
project (ep)


SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wno-literal-suffix ")
set(CMAKE_C_FLAGS " --std=c99 ${CMAKE_C_FLAGS}")

SET(CMAKE_BUILD_TYPE Debug)

if(NOT DEFINED WA_SDK_DIR)
  set (WA_SDK_DIR  ${CMAKE_CURRENT_LIST_DIR}/../../../out/host/wa-iot)
endif()
include(${WA_SDK_DIR}/wa-sdk.cmake)

include_directories(${CMAKE_CURRENT_LIST_DIR})


SET(SOURCES
  main.cpp  
  data_listen.c 
)


add_executable(ep_reporter ${SOURCES})
linkWA_SDK(ep_reporter)

#
# or add ${WA_SDK_LINK_DEPS} to target_link_libraries without using linkWA_SDK()
#

# target_link_libraries(ep_reporter ${WA_SDK_LINK_DEPS})
